<template>
  <div class="tree-toobar">
    <div class="child" @click="handleEnlarge">
      <SvgIcon fillId="fdj" name="fdj" color="#ffffff" />
    </div>
    <div class="line"></div>
    <div class="child" @click="handleNarrow">
      <SvgIcon fillId="sxj" name="sxj" color="#ffffff" />
    </div>
  </div>
</template>
<script setup lang="ts">
const emit = defineEmits(["enlarge", "narrow"]);
// 处理放大事件
const handleEnlarge = () => {
  emit("enlarge");
};

// 处理缩小事件
const handleNarrow = () => {
  emit("narrow");
};
</script>
<style scoped lang="scss">
.tree-toobar {
  position: fixed;
  z-index: 1;
  top: 138px;
  right: 32px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  width: 38px;
  height: 129px;
  background-color: rgba(255, 255, 255, 1);
  // background-color: background-color: rgb(239, 240, 245);;

  .child {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .line {
    width: 22px;
    height: 1px;
    background-color: rgba(229, 230, 235, 1);
    margin-left: 7px;
  }
}
</style>
